package cn.edu.zhku.citrusmonitor.person.expert.dao;

import java.sql.SQLException;
import java.util.List;

import cn.edu.zhku.citrusmonitor.domain.TbExpert;
import cn.edu.zhku.citrusmonitor.domain.TbUser;

public interface ExpertDao {

	public Object getUserByExpertName(String expertName) throws SQLException;

	public TbExpert getUserByExpertNameAndPwd(String expertName, String password) throws SQLException;

	public int addExpertByBean(TbExpert expert) throws SQLException;

	public int modify(TbExpert expert) throws SQLException;

	public int deleteExpertById(String id) throws SQLException;

	public TbExpert getExpertById(String id) throws SQLException;

	public long getTotal() throws SQLException;

	public List<TbExpert> getList(int currentPage, long pageSize) throws SQLException;

	public TbExpert getExpertByName(String name) throws SQLException;

	public int[] removeAllById(String[] ids) throws SQLException;

	
}
